{layout name="layout" /}
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程管理
            <small>实验管理</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
            <li class="active">课程实验</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->

        <div class="row">
            <section class="col-lg-6 connectedSortable">
                <h4><strong >添加课程</strong></h4>
                <form action="/index/Course/addCourseUser" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入课程ID" name="courseId">

                    </div>

                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
                <br>
                <h4><strong >全部课程列表</strong></h4>
                <!-- Chat box -->

                <div  class="form-control" style="height: 600px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                        <div class="box">
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>课程名称</th>
                                        <th>课程描述</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($data as $value): ?>
                                    <tr>
                                        <td>{$value.course_id}</td>
                                        <td>{$value.name}</td>
                                        <td>{$value.describe}</td>
                                    </tr>
                                    <?php endforeach; ?>
                                    </tbody>


                                </table>
                            </div>
                        </div>
                    </div>
                </div>


                <!-- /.box (chat box) -->

            </section>
            <section class="col-lg-6 connectedSortable">
                <h4><strong >添加实验</strong></h4>
                <form action="/index/Course/addCourseProject" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入课程ID" name="courseId">

                    </div>
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入实验名称" name="projectName">
                    </div>
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入实验描述" name="projectDescribe">
                    </div>
                    <div class="form-group">
                        <label>任务要求</label>
                        <select class="form-control" name="projectStatus">
                            <option>个人</option>
                            <option>分组</option>
                        </select>
                    </div>

                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
                <h4><strong >已选课程列表</strong></h4>
                <!-- Chat box -->
                <div  class="form-control" style="height: 600px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                        <div class="box">
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>课程名称</th>
                                        <th>课程描述</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach($result as $row): ?>
                                    <tr >
                                        <td class="col-xs-4">{$row.course_id}</td>
                                        <td class="col-xs-4">{$row.name}</td>
                                        <td class="col-xs-4">{$row.describe}</td>
                                    </tr>
                                    <?php endforeach; ?>
                                    </tbody>


                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>


    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->